<style>
    body,html{
        overflow-y: hidden;
    }
</style>
<script>
    var type = {{ type | json_encode }};
</script>
<table style="height: 100%;width:100%;">
    <tr>
        <td>
            <div class="form-inline" style="padding: 10px;background-color: #bdf3dc;">
                <div class="form-group" style="margin-left: 10px;">
                    <label>日期：</label>
                    <input id="startTime" type="date" class="form-control" value="{{ startTime }}">
                </div>
                <div class="form-group">
                    <label> ~ </label>
                    <input id="endTime" type="date" class="form-control" value="{{ endTime }}">
                </div>
                {% if type == 'schools' %}
                    <div class="form-group">
                        <label> 学校 </label>
                        <select id="schools" class="form-control" multiple="multiple" style="width: 400px;">
                            <option value="0" selected>全部</option>
                            {% for id,text in schools %}
                                <option value="{{ id }}">{{ text }}</option>
                            {% endfor %}
                        </select>
                    </div>
                {% endif %}
                {% if type == 'teachers' %}
                    <div class="form-group">
                        <label> 学校 </label>
                        <select id="schoolId" class="form-control" style="width: 200px;">
                            <option value="" selected style="display: none">请选择</option>
                            {% for id,text in schools %}
                                <option value="{{ id }}">{{ text }}</option>
                            {% endfor %}
                        </select>
                    </div>
                    <div class="form-group">
                        <label> 教师 </label>
                        <select id="teachers" class="form-control" multiple="multiple" style="width: 200px;">
                            <option value="0" selected>全部</option>
                        </select>
                    </div>
                {% endif %}
                <a class="btn btn-success btn-sm xh-btn-load" id="btn_view" style="width: 100px;margin-left: 20px;">执行统计</a>
            </div>
        </td>
    </tr>
    <tr style="height: 100%;width:100%;">
        <td>
            <iframe frameborder="0" height="100%" width="100%" src=""></iframe>
        </td>
    </tr>
</table>